def factorial(n):
    sum=1
    if n==0:
        return 1
    for num in range(1,n+1):
        sum=sum*num
    return sum
n=int(input())
print(factorial(n))